import axios, { AxiosInstance, CreateAxiosDefaults } from 'axios'
export function base(baseURL: string, config: CreateAxiosDefaults = {}) {
  const INSTACE: AxiosInstance = axios.create({
    timeout: 30000,
    baseURL,
    ...config
  })
  return INSTACE
}